package com.zzyang.cloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.UUID;

/**
 * TODO
 *
 * @author zhuoziyang
 * @date 2020/10/24 23:07
 */
@RestController
public class OrderController {

    @Autowired
    private RestTemplate restTemplate;

    private String url = "http://cloud-payment-service";

    @GetMapping("/order/zp")
    public String zk() {
        return restTemplate.getForObject(url + "/payment/zp", String.class);
    }

}
